standardebooks / manual

The source code for the Standard Ebooks Manual of Style.
https://standardebooks.org/manual
Other
131 stars 33 forks source link

Should hair spaces be allowed in alt attributes? #163

Closed apasel422 closed 2 months ago

apasel422 commented 2 months ago

https://standardebooks.org/manual/1.8.0/7-high-level-structural-patterns#7.8.2.1.1 says:

The alt attribute does not contain no-break spaces or word joiners.

But should that attribute ever contain a hair space?

acabal commented 2 months ago

Yes, it can include exotic spacing and punctuation. It does not include nbsp or wj because for the most part there is no concept of a line break in an alt attribute, and those two characters specifically control line breaking.