https://bugs.freedesktop.org/show_bug.cgi?id=56116

--- Comment #5 from Roman Eisele <[email protected]> ---
Thank you very much for checking this!

Now the next question is: which characters are allowed for the names of HTML
anchors? AFAIK, HTML anchors are <a> tags with an name="" attribute (or, more
up-to-date, with an id="" attribute). According to
    http://www.w3.org/TR/html401/struct/links.html#adef-name-A
the name attribute is of type cdata; this would indeed allow a wide range of
characters! But according to
    http://www.w3.org/TR/html401/types.html#type-cdata
the range of allowed charaters especially in the name and id attributes is
rather limited:
     ID and NAME tokens must begin with a letter ([A-Za-z])
     and may be followed by any number of letters, digits ([0-9]),
     hyphens ("-"), underscores ("_"), colons (":"), and periods (".").
I would assume that “letters” in “any number of letters” means the same as
“letter ([A-Za-z])” before, i.e. an Latin ASCII letter.

So (according to your list) LibreOffice actually allows much *more* characters
in bookmark names than HTML in name/id attributes ;-) The only characters which
are allowed in HTML name attributes, but not in LibreOffice bookmark names, are
     : .

Therefore, the only characters which need to be allowed additionally in
bookmark names to match the whole range of characters which are allowed for the
names of HTML anchors are ‘:’ and ‘.’ Would you agree? (Then we could formulate
this issue as a very precise enhancement request.)

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to