This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
For the following markup: <bean id="foo" class="FooAbstractController" p: /> <bean id="bar" class="SomeOtherClass"/> the XML parser in xml.text returns an Element whose class attribute is "SomeOtherClass". This is because when computing attributes in org.netbeans.modules.xml.text.syntax.dom.Tag.getAttributes(), the parser skips over error tokens (such as the "p:" at the end of the first bean element). The parser should stop on the first error token. since that is consistent with what the lexer does. Please consider applying the attached patch.
Created attachment 57806 [details] Proposed patch
Please go ahead, apply the patch and mark it fixed.
Fixed in 75aea4d72208.