[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:27:30 PDT 2023


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

--- Comment #3 from Ahmad Saleem <ahmad.saleem792 at gmail.com> ---
(In reply to Chris Dumez from comment #2)
> (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);
> }
> ```

Let me try it in local build, if it works. Will do PR. Thanks for your help.

-- 
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/1c4b0577/attachment.htm>


More information about the webkit-unassigned mailing list