[w3c-dom4] And more

Glad that my previous reports are tracked and helped to improve the specification a little bit. This is probably the last message with some minor issues.

Please check the following:

1. Interface Element:
"The removeAttributeNS(namespace, localName) method must return the following steps".

"method must return" -> "method must run".

2. Interface Node:
"If other is preceding reference return DOCUMENT_POSITION_PRECEDING". There is no comma before "return".

3. Interface Node:
"To locate a namespace prefix for an element using namespace run these steps". Lacking a comma before "run"?

4. Interface Node:
"If, element has an attribute whose namespace prefix is". Superfluous comma after "If"?


5. Maybe it's not so important or I'm not expert in English punctuation, but still please check the following sentences in the specification:

"Returns the string "CSS1Compat" if document is in no-quirks mode or limited-quirks mode, and "BackCompat", if document is in quirks mode". Perhaps superfluous comma in "and "BackCompat", if document is in quirks mode"?

"If localName is "*" returns a HTMLCollection of all descendant elements",
"If only namespace is "*" returns a HTMLCollection of all descendant elements whose local name is localName",
"If only localName is "*" returns a HTMLCollection of all descendant elements whose namespace is namespace".
Lacking a comma before "returns"?

"If localName does not match the Name production an "InvalidCharacterError" exception will be thrown",
"If one of the following conditions is true a "NamespaceError" exception will be thrown",
"If target does not match the Name production an "InvalidCharacterError" exception will be thrown",
"If data contains "?>" an "InvalidCharacterError" exception will be thrown".
Perhaps lacking a comma before an/a?

"If node is a document throws a "NotSupportedError" exception" (twice).
Lacking a comma before "throws a"?

"If interface is an ASCII case-insensitive match for any of the strings in the first column in the following table, set constructor to the interface in the second column on the same row as the matching string"
Lacking a comma before "match for any of the"?

"If offset plus count is greater than length let count be length minus offset".
Lacking a comma before "let count be"?


--
Kirill, http://topolyan.com/

Received on Wednesday, 18 January 2017 10:53:32 UTC