adjacent selector matches text node
Pure Java HTML / CSS rendering engine
Status: Beta
Brought to you by:
radkovo
While getting the previousSibling
of an element from the DOM
for matching an Adjacent Selector
all the TextNodes
, CommentNodes
and WhiteSpaceNodes
must be ignored for matching an element. Ref
Anonymous
(I can't find a way to watch or star the issues on SF. Hence adding a comment and hoping to get notifications.)
Yes, I get notifications about all the tickets. Thanks for the reports. I already started to solve some of them but it may take some time before I find the source and posssible solution.
Radek, thanks a lot for creating and maintaining this project. The previous comment was so that I can get notifications :) I hope you don't mind the noise.
On a related note, do you think GitHub can be a better option for hosting the project issues? I notice that you have already hosted the code on GitHub, but haven't enabled issue tracking. Github has support for watching issues noiselessly.
Test Case:
CSS
HTML
Expected style for
p
elementActual style applied to
p
elementBtw, the BoxBrowser works fine with that test case, probably because the HTML parser within it doesn't append text nodes between
div
andp
elements.However, the parser in our project adds the additional text-nodes and hence the test fails.
Sorry forgot to mention that.
@mercury: thanks :)
Are you using a DirectAnalyzer or Analyzer (with maps)? Or are both of them affected?
I am using DirectAnalyzer. Did not try it with Analyzer (with maps)
Ok, DirectAnalyzer should be fixed now. Analyzer seems not to be affected.
Will soon test all the fixes and update at once.
Appreciate the quick response and fixes. Thanks a lot.
Verified.
Thanks for the fix.
Closed in 1.19