Commit 871e095d authored by tkent@chromium.org's avatar tkent@chromium.org

Use WebNode::getElementsByHTMLTagName instead of getElementsByTagName.

We're going to remove WebNode::getElementsByTagName.

BUG=394234

Review URL: https://codereview.chromium.org/393873003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@283928 0039d316-1c4b-4281-b951-d872f2087c98
parent dbaa1e35
......@@ -58,7 +58,8 @@ blink::WebElement GetImgChild(const blink::WebElement& element) {
// This implementation is incomplete (for example if is an area tag) but
// matches the original WebViewClassic implementation.
blink::WebElementCollection collection = element.getElementsByTagName("img");
blink::WebElementCollection collection =
element.getElementsByHTMLTagName("img");
DCHECK(!collection.isNull());
return collection.firstItem();
}
......
......@@ -908,7 +908,7 @@ bool WebFormElementToFormData(
// element's name as a key into the <name, FormFieldData> map to find the
// previously created FormFieldData and set the FormFieldData's label to the
// label.firstChild().nodeValue() of the label element.
WebElementCollection labels = form_element.getElementsByTagName(kLabel);
WebElementCollection labels = form_element.getElementsByHTMLTagName(kLabel);
DCHECK(!labels.isNull());
for (WebElement item = labels.firstItem(); !item.isNull();
item = labels.nextItem()) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment