HTML Tidy doesnt like &b,&y

Discussion in 'HTML & Website Design' started by AnotherRob, Sep 8, 2012.

  1. #1
    I have just run HTML Tidy over my page and I get 2 errors
    Quote
    line 76 column 207 - Warning: unescaped & or unknown entity "&b"
    and
    line 76 column 33 - Warning: <iframe> proprietary attribute "allowtransparency"
    End Quote
    Both of these are in the code for Site Search Engine from Tools-Digitalpoint

    I have done the recommened changes and it doesn't seem to matter what is there, it still works.
    Query is: Was it coded "wrong" on purpose or is Tidy just being perfect ?
    Thanks

    Rob
     
    AnotherRob, Sep 8, 2012 IP
  2. stras77

    stras77 Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    The thing is that it isn't true HTML. Browsers show it, but it is not a part of HTML if you can follow me. I don't know what &b is. I'm thinking that you are trying to make a break(<br />)/a space(&nbsp; ) or even a bold marking(<b>Bold text here</b>). Some browsers might show it correctly but some browsers will ignore it thats why tidy doesn't like it.
     
    stras77, Sep 10, 2012 IP
  3. AnotherRob

    AnotherRob Peon

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    stras77
    It is HTML .. Its in the line of code "you" get when you download the Site Search Engine from Tools-Digitalpoint. Html Tidy wants the &b to be &ampb and allowtransparency=yes to be allowtransparency="yes"
    It works both ways, I was just wondering if someone was "slack" in the code writing or if it was coded that way on purpose. No big hassle

    Here is the link.. have a look. http://tools.digitalpoint.com/site-search
     
    AnotherRob, Sep 10, 2012 IP
  4. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,999
    Best Answers:
    253
    Trophy Points:
    515
    #4
    Both those ampersands should be escaped as &amp; -- not surprising since that 'tool' looks like it was written in the dark ages of the Internet, what with the IFRAME (which has no business being used on any website written after 1998), etc, etc...

    NOT that I would be trusting ANYTHING HTML tidy says so far as validation goes, that's what the REAL W3C validator is for.

    ... but yeah, you want to use some crappy decade out of date markup, you're going to have to proudly proclaim it to all by using a tranny doctype; announce to the world 'this page is in transition from 1997 to 1998 methodologies'.

    I wouldn't say it was coded wrong 'on purpose' -- just out of ignorance, or just plain age; since a lot of developers still haven't pulled their heads out of 1997's backside. See "HTML 5" and the dumbasses trying to actually use it for proof of that.
     
    deathshadow, Sep 10, 2012 IP