Skip to content

Commit 920a126

Browse files
authored
Fix #240. Attributes, by default, are not namespaced. (#243)
1 parent 155a95f commit 920a126

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dist/spec/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -824,7 +824,7 @@ <h4 class="heading settled" data-level="2.3.1" id="trusted-type-policy-factory">
824824
<li data-md>
825825
<p>If <var>elementNs</var> is an empty string, set <var>elementNs</var> to <a data-link-type="dfn" href="https://infra.spec.whatwg.org/#html-namespace" id="ref-for-html-namespace①">HTML namespace</a>.</p>
826826
<li data-md>
827-
<p>If <var>attrNs</var> is an empty string, set <var>attrNs</var> to <var>elementNs</var>’s value.</p>
827+
<p>If <var>attrNs</var> is an empty string, set <var>attrNs</var> to null.</p>
828828
<li data-md>
829829
<p>Let <var>interface</var> be the <a data-link-type="dfn" href="https://dom.spec.whatwg.org/#concept-element-interface" id="ref-for-concept-element-interface①">element interface</a> for <var>localName</var> and <var>elementNs</var>.</p>
830830
<li data-md>

spec/index.bs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ initially empty.
538538
1. Set |localName| to |tagName| in [=ASCII lowercase=].
539539
1. Set |attribute| to |attribute| in [=ASCII lowercase=].
540540
1. If |elementNs| is an empty string, set |elementNs| to [=HTML namespace=].
541-
1. If |attrNs| is an empty string, set |attrNs| to |elementNs|'s value.
541+
1. If |attrNs| is an empty string, set |attrNs| to null.
542542
1. Let |interface| be the [=element interface=] for |localName| and |elementNs|.
543543
1. If |interface| does not have an IDL [=attribute=] that [=reflects=] a content attribute with
544544
|localName| [=attribute/local name=] and |attrNs| [=attribute/namespace=],

0 commit comments

Comments
 (0)