- From: Simon Pieters <simonp@opera.com>
- Date: Fri, 19 Oct 2007 17:31:59 +0200
- To: public-html <public-html@w3.org>
For compat with existing implementations, the commandId parameter of execCommand() should be ASCII case insensitive. http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C!DOCTYPE%20html%3E%3Cbody%20contenteditable%3Dtrue%3E%3Cp%3Ex%3C%2Fp%3E%3Cscript%3Ewindow.onload%3Dfunction(){document.execCommand(%22selectall%22%2Cnull%2C%22%22)%3Bdocument.execCommand(%22superSCRIPT%22%2Cnull%2C%22%22)}%3C%2Fscript%3E http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C!DOCTYPE%20html%3E%3Cbody%20contenteditable%3Dtrue%3E%3Cp%3Ex%3C%2Fp%3E%3Cscript%3Ewindow.onload%3Dfunction(){document.execCommand(%22selectall%22%2Cnull%2C%22%22)%3Bdocument.execCommand(%22superscr%C4%B1pt%22%2Cnull%2C%22%22)}%3C%2Fscript%3E http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C!DOCTYPE%20html%3E%3Cbody%20contenteditable%3Dtrue%3E%3Cp%3Ex%3C%2Fp%3E%3Cscript%3Ewindow.onload%3Dfunction(){document.execCommand(%22selectall%22%2Cnull%2C%22%22)%3Bdocument.execCommand(%22superscr%C4%B0pt%22%2Cnull%2C%22%22)}%3C%2Fscript%3E For the formatblock command, the value parameter is Unicode case insensitive in IE, and ASCII case insensitive in Firefox, Safari and Opera. I don't have an opinion on whom to follow but it certainly shouldn't be case *sensitive*. http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C!DOCTYPE%20html%3E%3Cbody%20contenteditable%3Dtrue%3E%3Cp%3Ex%3C%2Fp%3E%3Cscript%3Ewindow.onload%3Dfunction(){document.execCommand(%22selectall%22%2Cnull%2C%22%22)%3Bdocument.execCommand(%22formatblock%22%2Cnull%2C%22%3Caddre%C3%9F%3E%22)}%3C%2Fscript%3E The values can also be specified without the < and > in IE, Safari and Opera. http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C!DOCTYPE%20html%3E%3Cbody%20contenteditable%3Dtrue%3E%3Cp%3Ex%3C%2Fp%3E%3Cscript%3Ewindow.onload%3Dfunction(){document.execCommand(%22selectall%22%2Cnull%2C%22%22)%3Bdocument.execCommand(%22formatblock%22%2Cnull%2C%22address%22)}%3C%2Fscript%3E Also, in IE and Opera, the formatblock command is not restricted to editing hosts only. http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C!DOCTYPE%20html%3E%3Cp%3Ex%3C%2Fp%3E%3Cscript%3Edocument.execCommand(%22selectall%22%2Cnull%2C%22%22)%3Bdocument.execCommand(%22formatblock%22%2Cnull%2C%22%3Caddress%3E%22)%3C%2Fscript%3E -- Simon Pieters Opera Software
Received on Friday, 19 October 2007 15:32:10 UTC