[Koha-bugs] [Bug 27336] JS error in Administration - System preferences page

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Jan 5 03:40:24 CET 2021


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27336

--- Comment #5 from David Cook <dcook at prosentient.com.au> ---
It looks like HTML 4 was strict about the value of ID
(https://www.w3.org/TR/html4/types.html#type-id). However, HTML 5 doesn't seem
to be
(https://www.w3.org/TR/2011/WD-html5-20110525/elements.html#the-id-attribute).

It looks like the issue arises in the jquery-2.2.3 library in fa.tokenize.
Reading the minified JS even with pretty print turned on is a bit of a
nightmare. I feel like Chrome might not be processing things quite right in the
debugger. 

In any case, Jquery and CSS2 get more specific about what they allow and do not
allow:

https://api.jquery.com/category/selectors/
https://www.w3.org/TR/CSS21/syndata.html#value-def-identifier

Wow CSS specs are a bigger mess than one would think...

For CSS3... I can't make head or tail of the spec in terms of allowed
characters. It says how to escape characters but that's about it
(https://www.w3.org/TR/css-syntax-3/#escaping). This is vague:
https://www.w3.org/TR/css-syntax-3/#typedef-ident-token

"Property names and at-rule names are always identifiers, which have to start
with a letter or a hyphen followed by a letter, and then can contain letters,
numbers, hyphens, or underscores. You can include any code point at all, even
ones that CSS uses in its syntax, by escaping it."

https://www.w3.org/TR/css-syntax-3/#syntax-description

So I suppose another solution would be to implement a template toolkit for CSS
selectors...

Anyway, enough of this digression... heh

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list