\n","\n\n","MUST be output as","\n\n","A common requirement is to output a "," element\nas shown in the example below:","\n\n","This is invalid HTML, for the reasons explained in\nsection B.3.2 of the [HTML] 4.01\nspecification. Nevertheless, it is possible to output this\nfragment, using either of the following constructs:","Firstly, by use of a "," element created by an\nXQuery direct element constructor or an XSLT literal result\nelement:","Secondly, by constructing the markup from ordinary text\ncharacters:","\n\n","As the [HTML] specification points out,\nthe correct way to write this is to use the escape conventions for\nthe specific scripting language. For JavaScript, it can be written\nas:","\n\n","The [HTML] 4.01 specification also shows\nexamples of how to write this in various other scripting languages.\nThe escaping MUST be done manually; it will not be\ndone by the serializer.","7.2 Writing\nAttributes"," escape\n\"","\" characters occurring in attribute values.","A boolean attribute is an attribute with only a single allowed\nvalue in any of the HTML DTDs or that is specified to be\na Boolean\nattribute by [HTML5], where\nthe allowed value is equal without regard to case to the name of\nthe attribute. The HTML output method MUST output\nany boolean attribute in minimized form if and only if the value of\nthe attribute node actually is equal to the name of the attribute\nmaking the comparison without regard to case.","[Definition: The attributes identified as\nBoolean attributes in [HTML5] are those\ngiven in the following table (using just the local name of their\nparent elements): ]","Attribute","Element(s)","async","autofocus","button, input, keygen, select, textarea","autoplay","audio, video","checked","controls","default","defer","disabled","button, fieldset, input, keygen, optgroup, option, select,\ntextarea","formnovalidate","button, input","hidden","HTML elements","ismap","loop","multiple","input, select","muted","novalidate","form","open","details","dialog","readonly","input, textarea","required","input, select, textarea","reversed","ol","scoped","seamless","selected","option","typemustmatch","This list of Boolean attributes is that given in the \nindex of the draft of [HTML5] current at\nthe time this document is published. As noted elsewhere, processors\nconforming to this specification MAY support the\nlist of Boolean attributes included in later versions of [HTML5].","For example, a start-tag created using the following XQuery\ndirect element constructor or XSLT literal result element","\n