Closed sanette closed 5 years ago
The second syntax shouldn't work, as I understand it:
ID selectors are #
followed by a CSS identifier: https://www.w3.org/TR/selectors-3/#id-selectors, second paragraph.
Here is the identifier syntax: https://www.w3.org/TR/CSS21/syndata.html#value-def-identifier. It doesn't allow literal :
. I don't remember immediately if you can use an escape sequence to work around this in Lambda Soup, but technically, you'd have to insert the escape sequence in both the id
attribute and in the selector. Of course, if this is some non-compliant HTML from an external source, we may have to work around this somehow, so I suggest trying an escape sequence, or sticking with the attribute selector [id=...]
.
thanks for the fast answer! I found this in the ocaml manual generated by Hevea ;)
Argh! I suggest also opening an issue in the ocaml repo about the non-compliant IDs.
Right; I'll do this
note that Chris00 has a different interpretation. See https://github.com/ocaml/ocaml.org/issues/1093
Hi, thanks for this great library. I noticed the following behaviour: