[Webkit-unassigned] [Bug 256536] XPath: Apply ignore-case matching to attribute names

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu May 11 17:26:48 PDT 2023


https://bugs.webkit.org/show_bug.cgi?id=256536

--- Comment #2 from Chris Dumez <cdumez at apple.com> ---
(In reply to Ahmad Saleem from comment #1)
> This is error, I get:
> 
> declaration of variable 'attr' with deduced type 'auto *' requires an
>       initializer

Probably want to use something like:
```
RefPtr<Attr> attr;

// We need this branch because getAttributeNodeNS() doesn't do
// ignore-case matching even for an HTML element in an HTML document.
if (m_nodeTest.m_namespaceURI.isNull())
    attr = contextElement->getAttributeNode(m_nodeTest.m_data);
else
    attr = contextElement->getAttributeNodeNS(m_nodeTest.m_namespaceURI, m_nodeTest.m_data);
}
```

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230512/bedbb1b0/attachment.htm>


More information about the webkit-unassigned mailing list