Skip to content

Commit 279d0dd

Browse files
authored
Ensure element's namespace is HTML, SVG or MathML before covering eve… (#578)
* Ensure element's namespace is HTML, SVG or MathML before covering event handler content attributes
1 parent a60ba8f commit 279d0dd

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

spec/index.bs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,18 @@ spec: HTML; urlPrefix: https://html.spec.whatwg.org/
132132
type: dfn; text: get the text steps; url: get-the-text-steps
133133
type: dfn; text: set the inner text steps; url: set-the-inner-text-steps
134134
type: dfn; text: src; url: attr-script-src
135+
type: dfn; text: event handler content attribute; url: event-handler-content-attributes
135136
spec:DOM; urlPrefix: https://dom.spec.whatwg.org/
136137
type: dfn; text: get text content; url: get-text-content
137138
type: dfn; text: set text content; url: set-text-content
139+
type: dfn; text: element namespace; url: concept-element-namespace
140+
spec:infra; urlPrefix: https://infra.spec.whatwg.org/
141+
type: dfn; text: HTML namespace; url: html-namespace
142+
type: dfn; text: SVG namespace; url: svg-namespace
143+
type: dfn; text: MathML namespace; url: mathml-namespace
144+
type: dfn; text: XLink namespace; url: xlink-namespace
145+
type: dfn; text: list; url: list
146+
type: dfn; text: list contain; url: list-contain
138147
</pre>
139148

140149
<pre class="link-defaults">
@@ -1111,7 +1120,7 @@ To <dfn abstract-op>Get Trusted Type data for attribute</dfn> given |element|, |
11111120
Issue: The [=event handler content attribute=] concept used below is ambiguous. This spec needs a better mechanism to identify event handler attributes. See [https://github.com/w3c/trusted-types/issues/520](https://github.com/w3c/trusted-types/issues/520).
11121121

11131122
1. Let |data| be null.
1114-
1. If |attributeNs| is null, and |attribute| is the name of an [=event handler content attribute=], then:
1123+
1. If |attributeNs| is null, « [=HTML namespace=], [=SVG namespace=], [=MathML namespace=] » [=list contain|contains=] |element|'s [=element namespace|namespace=], and |attribute| is the name of an [=event handler content attribute=]:
11151124
1. Return ({{Element}}, null, |attribute|, {{TrustedScript}}, "Element " + |attribute|).
11161125
1. Find the row in the following table, where |element| is in the first column, |attributeNs| is in the second column,
11171126
and |attribute| is in the third column.

0 commit comments

Comments
 (0)