html serialization select option selected vanishes

Sunday, 12 January 2014 · 3 messages · last reply 13 Jan 2014
AB
Andy Bunce12 Jan 2014 17:29 #
declare option output:method "html";
declare option output:html-version "5.0";
<select><option value="a" selected="selected">a</option>
<option value="b" bad="bad">b</option></select>
Result
<!DOCTYPE html>
<select>
  <option value="a">a</option>
  <option value="b" bad="bad">b</option>
</select>
Note bizzare vanishing of selected="selected". Seems to only happen only for option with selected="selected" for all html versions. /Andy
CG
Christian Grün12 Jan 2014 17:36 #
…confirmed. I’ve added a GitHub issue [1]. Thanks, Christian [1] https://github.com/BaseXdb/basex/issues/840
Quoted text · Andy Bunce · 25 lines
On Sun, Jan 12, 2014 at 5:29 PM, Andy Bunce <bunce.andy at gmail.com> wrote: > declare option output:method "html"; > declare option output:html-version "5.0"; > <select><option value="a" selected="selected">a</option> > <option value="b" bad="bad">b</option></select> > > Result > > <!DOCTYPE html> > <select> > <option value="a">a</option> > <option value="b" bad="bad">b</option> > </select> > > Note bizzare vanishing of selected="selected". Seems to only happen only for > option with selected="selected" for all html versions. > > /Andy > > > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >
CG
Christian Grün13 Jan 2014 12:47 #
Quoted text · Christian Grün · 1 line
> …confirmed. I’ve added a GitHub issue [1].
…and I’ve now fixed the bug.
Quoted text · Andy Bunce · 25 lines
> On Sun, Jan 12, 2014 at 5:29 PM, Andy Bunce <bunce.andy at gmail.com> wrote: >> declare option output:method "html"; >> declare option output:html-version "5.0"; >> <select><option value="a" selected="selected">a</option> >> <option value="b" bad="bad">b</option></select> >> >> Result >> >> <!DOCTYPE html> >> <select> >> <option value="a">a</option> >> <option value="b" bad="bad">b</option> >> </select> >> >> Note bizzare vanishing of selected="selected". Seems to only happen only for >> option with selected="selected" for all html versions. >> >> /Andy >> >> >> _______________________________________________ >> BaseX-Talk mailing list >> BaseX-Talk at mailman.uni-konstanz.de >> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >>

⚡Generated with XQuery