-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Labels
clarificationStandard could be clearerStandard could be clearer
Description
The current spec does this:
-
If attribute is null, then:
- If force is not given or is true, create an attribute whose local name is qualifiedName, value is the empty string, and node document is the context object’s node document, then append this attribute to the context object, and then return true.
- Return false.
Note the need for a bunch of "then" in the first nested case. This might be easier to read as:
-
If attribute is null, then:
-
If force is given and is false, return false.
-
Create an attribute whose local name is qualifiedName, value is the empty string, and node document is the context object’s node document.
-
Append this attribute to the context object.
-
Return true.
-
or so. Similar for the case when attribute is not null.
Metadata
Metadata
Assignees
Labels
clarificationStandard could be clearerStandard could be clearer