mojarra
mojarra copied to clipboard
Fix for Issue #4281 - Namespaces on HTML tags cause a malformed facelet tree
The issue is caused because raw HTML tags are closed and popped the next time a JSF tag is popped; however, this causes popNamespaces to fail if a namespace was defined on a raw HTML tag. I fixed this by adding a finishUnit call when t.endTag() closes the last tag in a block of text.
In case there is some issue with my fix, an alternative fix is to copy the if statement from lines 335-337 into popNamespaces (and the necessary variable declarations).