99 rel =dcterms.rights >
1010 < meta content ="Selectors Level 4 " name =dcterms.title >
1111 < meta content =text name =dcterms.type >
12- < meta content =2012-11-27 name =dcterms.issued >
12+ < meta content =2012-12-04 name =dcterms.issued >
1313 < meta content ="http://dev.w3.org/csswg/selectors4/ " name =dcterms.creator >
1414 < meta content =W3C name =dcterms.publisher >
15- < meta content ="http://www.w3.org/TR/2012/ED-selectors4-20121127 / "
15+ < meta content ="http://www.w3.org/TR/2012/ED-selectors4-20121204 / "
1616 name =dcterms.identifier >
1717 < link href ="../default.css " rel =stylesheet type ="text/css ">
1818 < style type ="text/css ">
2929
3030 < h1 id =title > Selectors Level 4</ h1 >
3131
32- < h2 class ="no-num no-toc " id =longstatus-date > Editor's Draft 27 November
32+ < h2 class ="no-num no-toc " id =longstatus-date > Editor's Draft 4 December
3333 2012</ h2 >
3434
3535 < dl >
3636 < dt > This version:
3737
38- < dd > < a href ="http://www.w3.org/TR/2012/ED-selectors4-20121127 / ">
39- http://www.w3.org/TR/2012/ED-selectors4-20121127 /</ a >
38+ < dd > < a href ="http://www.w3.org/TR/2012/ED-selectors4-20121204 / ">
39+ http://www.w3.org/TR/2012/ED-selectors4-20121204 /</ a >
4040
4141 < dt > Editor's draft:
4242
@@ -1234,8 +1234,14 @@ <h3 id=subject><span class=secno>3.2. </span> Determining the Subject of a
12341234 < h3 id =scoping > < span class =secno > 3.3. </ span > Scoped Selectors</ h3 >
12351235
12361236 < p > Some host applications may choose to < dfn id =scope > scope</ dfn > selectors
1237- to a particular subtree of the document. There are two methods of doing
1238- this:
1237+ to a particular subtree of the document. The root of the scoping subtree
1238+ is called the < dfn id =scoping-element > scoping element</ dfn > , and is
1239+ in-scope. When scoped selectors are used, it forms the < a
1240+ href ="#contextual-reference-element-set "> < i > contextual reference element
1241+ set</ i > </ a > and matches the < a
1242+ href ="#scope-pseudo "> < code > :scope</ code > </ a > pseudo-class.
1243+
1244+ < p > There are three methods of scoping selectors:
12391245
12401246 < dl >
12411247 < dt > < dfn id =scope-contained > scope-contained</ dfn > selectors
@@ -1252,14 +1258,18 @@ <h3 id=scoping><span class=secno>3.3. </span> Scoped Selectors</h3>
12521258 < dd > With this method of scoping, a selector matches if the < i > subject</ i >
12531259 of the selector is within the scope, even if other components of the
12541260 selector are outside the scope.
1255- </ dl >
12561261
1257- < p > The root of the scoping subtree is called the < dfn
1258- id =scoping-element > scoping element</ dfn > and is in-scope. When scoped
1259- selectors are used, it forms the < a
1260- href ="#contextual-reference-element-set "> < i > contextual reference element
1261- set</ i > </ a > and can be selected with the < a
1262- href ="#scope-pseudo "> < code > :scope</ code > </ a > pseudo-class.
1262+ < dt > < dfn id =scope-relative > scope-relative</ dfn > selectors
1263+
1264+ < dd > With this method of scoping, "< a
1265+ href ="#scope-pseudo "> < code > :scope</ code > </ a > " (the < a
1266+ href ="#scope-pseudo "> < code > :scope</ code > </ a > pseudo-class followed by a
1267+ space) is implied at the beginning of each < a href ="#complex "> < i > complex
1268+ selector</ i > </ a > , allowing them to begin syntactically with a < a
1269+ href ="#combinator "> < i > combinator</ i > </ a > . The scoping element matches
1270+ this implied < a href ="#scope-pseudo "> < code > :scope</ code > </ a > selector,
1271+ but does not limit which elements match.
1272+ </ dl >
12631273
12641274 < div class =example >
12651275 < p > For example, the < code > element.querySelector()</ code > function defined
0 commit comments