Menu

#5 > doesn't work in attributes

open-rejected
nobody
None
5
2005-12-08
2003-06-28
weltraumkuh
No

a > doesn't work in attributes.
Example:
<a href="#" name="x->y" >

or
<a test=">" >

Discussion

  • weltraumkuh

    weltraumkuh - 2003-06-28

    Logged In: YES
    user_id=811710

    it seems to work if I change line 354 (ekhtml_starttag.c) to
    if( *workp == '<') {
    and line 329 to
    for(;workp != endp && *workp != '<'; workp++){

    this doesn't work with a single > in the attributes name: ">"

    I didn't made any tests with < in attributes value.

     
  • Jon Travis

    Jon Travis - 2003-06-29

    Logged In: YES
    user_id=17434

    That isn't valid in an attribute for anything (or shouldn't be, since
    the spec says so)

    Try:

    <a href="#" name="x->y">

     
  • Jon Travis

    Jon Travis - 2003-06-29
    • status: open --> closed
     
  • weltraumkuh

    weltraumkuh - 2005-12-08
    • status: closed --> open-rejected
     
  • weltraumkuh

    weltraumkuh - 2005-12-08

    Logged In: YES
    user_id=811710

    No you are wrong: you say "...while forgiving syntactically
    incorrect tags..."
    And often in attributes there maybe Javascript just like
    <a onclick="if (x>10) foo()"> and browsers just handle it.
    So I think that ekhtml should just handle it too and it
    doesn't matter if iit is in any specs.

     

Log in to post a comment.

MongoDB Logo MongoDB