Re: [whatwg/dom] Make element and attribute names behave like the HTML parser (#449)

snuggs commented on this pull request.



> +</ol>
+
+<p>To <dfn>canonicalize a namespace and qualified name</dfn>, given <var>namespace</var>,
+<var>qualifiedName</var>, and a <var>mode</var> which is either "<code>attribute</code>" or
+"<code>element</code>":
+
+<ol>
+ <li><p>If <var>namespace</var> is the empty string, set it to null.
+
+ <li><p>Let <var>prefix</var> be null.
+
+ <li><p>Let <var>localName</var> be <var>qualifiedName</var>.
+
+ <li><p>If <var>qualifiedName</var> contains a "<code>:</code>" (U+003E), then split
+ <var>qualifiedName</var> on that first occurrence of "<code>:</code>" and set <var>prefix</var> to
+ the part before and <var>localName</var> to the part after.

@domenic `before` and `after` seem a bit vague. Perhaps suffix with ... _`prefix` to the part before and `localName` to the part after the `:` respectively.

Just a thought. Sounded incomplete when reading out loud.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/pull/449#pullrequestreview-185889684

Received on Tuesday, 18 December 2018 02:57:35 UTC