The PRE element

Something that makes reading computer science very difficult for me is code
presented in the PRE element. It does not word wrap. The best I can do with
style is enlarge with word wrapping after I delete all indentation.

I believe that computer code is a meaningful sequence of text. Think what
would happen if you reverse the order of program instructions arbitrarily.
Obviously the sequence of instructions is very significant, but the PRE
element gives no deterministic way to detect this order.  This really fails
1.3.2 right now, but since nobody wants to take this on in WCAG 2.0.

Let's at least have the LVTF note this gap. Actually, does the PRE element
have any use that does not hide semantics within presentation?

I think use of the PRE element fails 1.3.2, but if WCAG WG won't call that
one, then LVTF should identify this as an LV failure. It may require it's
own SC, and perhaps any use of PRE should be a failure.



Wayne

Received on Tuesday, 19 April 2016 03:30:45 UTC