[dom] Shorter setAttribute() method (#43)

Step 2. is repeat in substep 3.1. Maybe just redefine step 3 (consider only step 2. from "getting an attribute") and we will not have to navigate to another algo?

So change:
[3]. Let attribute be the result of getting an attribute given name and the context object. 
to :
[3]. Let attribute be the first attribute in context object's attribute list whose name is name, and null otherwise.  

all other steps will be the same.


---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/43

Received on Thursday, 11 June 2015 15:16:06 UTC