[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Public WebGL] specifying the allowed character range for extension strings



Hi,

I can't see anywhere in the spec mentioning this, but it seems clear that extension strings must match

  [a-zA-Z0-9_]+

right? In particular they must be in the 7-bit ASCII range.

Do you agree that this should be mentioned in the spec in 5.14.14 "Detecting and enabling extensions" ?

What should be the behavior of getExtension in presence of illegal characters: generate INVALID_VALUE in addition to returning null?

Notice that that isn't just an abstract issue as getExtension has to do a case-insensitive comparison and so it has to do a nontrivial operation on this input, so it is important to limit the allowed range of that input.

Cheers,
Benoit

-----------------------------------------------------------
You are currently subscribed to public_webgl@khronos.org.
To unsubscribe, send an email to majordomo@khronos.org with
the following command in the body of your email:
unsubscribe public_webgl
-----------------------------------------------------------