@@ -1069,18 +1069,21 @@ <h4><a name=attrnmsp>6.3.3. Attribute selectors and namespaces</a></h4>
10691069
10701070< h4 > < a name =def-values > 6.3.4. Default attribute values in DTDs</ a > </ h4 >
10711071
1072- < p > Attribute selectors represent explicitly set attribute values in
1073- the document tree. Default attribute values may be defined in a DTD or
1074- elsewhere, but cannot always be selected by attribute
1075- selectors. Selectors should be designed so that they work even if the
1076- default values are not included in the document tree.</ p >
1077-
1078- < p > More precisely, a UA is < em > not</ em > required to read an "external
1072+ < p > Attribute selectors represent attribute values in the document tree.
1073+ How that document tree is constructed is outside the scope of Selectors.
1074+ In some document formats default attribute values can be defined in a DTD or
1075+ elsewhere, but these can only be selected by attribute selectors if they
1076+ appear in the document tree. Selectors should be designed so that they
1077+ work whether or not the default values are included in the document tree.</ p >
1078+
1079+ < p > For example, a XML UA may, but is < em > not</ em > required to read an "external
10791080subset" of the DTD but < em > is</ em > required to look for default
10801081attribute values in the document's "internal subset." (See, e.g., < a
1081- href ="#refsXML10 "> [XML10]</ a > for definitions of these subsets.)</ p >
1082+ href ="#refsXML10 "> [XML10]</ a > for definitions of these subsets.) Depending
1083+ on the UA, a default attribute value defined in the external subset of the
1084+ DTD might or might not appear in the document tree.</ p >
10821085
1083- < p > A UA that recognizes an XML namespace is not required to use its
1086+ < p > A UA that recognizes an XML namespace may, but is not required to use its
10841087knowledge of that namespace to treat default attribute values as if
10851088they were present in the document. (For example, an XHTML UA is not
10861089required to use its built-in knowledge of the XHTML DTD. See, e.g., < a
@@ -1104,7 +1107,7 @@ <h4><a name=def-values>6.3.4. Default attribute values in DTDs</a></h4>
11041107< pre > EXAMPLE[radix=decimal] { /*... default property settings ...*/ }
11051108EXAMPLE[radix=octal] { /*... other settings...*/ }</ pre >
11061109
1107- < p > the first rule will not match elements whose < code > radix</ code > attribute is
1110+ < p > the first rule might not match elements whose < code > radix</ code > attribute is
11081111set by default, i.e. not set explicitly. To catch all cases, the
11091112attribute selector for the default value must be dropped:</ p >
11101113
0 commit comments