| Index: third_party/WebKit/Source/core/html/HTMLCollection.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/HTMLCollection.cpp b/third_party/WebKit/Source/core/html/HTMLCollection.cpp
|
| index cb02c2c8ab090b21dfdc761663d70df9dbb9948c..53eab77a12eed211985e47fcad7edabeb591ee84 100644
|
| --- a/third_party/WebKit/Source/core/html/HTMLCollection.cpp
|
| +++ b/third_party/WebKit/Source/core/html/HTMLCollection.cpp
|
| @@ -424,12 +424,16 @@ bool HTMLCollection::namedPropertyQuery(const AtomicString& name,
|
|
|
| void HTMLCollection::supportedPropertyNames(Vector<String>& names) {
|
| // As per the specification (https://dom.spec.whatwg.org/#htmlcollection):
|
| - // The supported property names are the values from the list returned by these steps:
|
| + // The supported property names are the values from the list returned by these
|
| + // steps:
|
| // 1. Let result be an empty list.
|
| - // 2. For each element represented by the collection, in tree order, run these substeps:
|
| - // 1. If element has an ID which is neither the empty string nor is in result, append element's ID to result.
|
| - // 2. If element is in the HTML namespace and has a name attribute whose value is neither the empty string
|
| - // nor is in result, append element's name attribute value to result.
|
| + // 2. For each element represented by the collection, in tree order, run these
|
| + // substeps:
|
| + // 1. If element has an ID which is neither the empty string nor is in
|
| + // result, append element's ID to result.
|
| + // 2. If element is in the HTML namespace and has a name attribute whose
|
| + // value is neither the empty string nor is in result, append element's
|
| + // name attribute value to result.
|
| // 3. Return result.
|
| HashSet<AtomicString> existingNames;
|
| unsigned length = this->length();
|
| @@ -480,7 +484,8 @@ void HTMLCollection::updateIdNameCache() const {
|
| nameShouldBeVisibleInDocumentAll(toHTMLElement(*element))))
|
| cache->addElementWithName(nameAttrVal, element);
|
| }
|
| - // Set the named item cache last as traversing the tree may cause cache invalidation.
|
| + // Set the named item cache last as traversing the tree may cause cache
|
| + // invalidation.
|
| setNamedItemCache(cache);
|
| }
|
|
|
|
|