• Resolved craigh

    (@craigh)


    Hi All,

    Think I’m getting out of my depth with this and would appreciate some help.

    trying to improve some google ranking it was suggested I used a semantic extration tool to see how the page was viewed by a bot. I used the free checker at https://www.w3.org/2003/12/semantic-extractor.html
    Anyone used this before?

    It came back with the message below. It appears to me that it can not read the page becuase of incomplete code, however the pages display ok and I didn’t write them in code only in the visual posting.

    Is it likley that in visual posting I’m getting incomplete code that could cause a bot to not be able to crawl a page correctly?

    Your thoughts would be appreciated.

    sematanic extractor came back with:

    Using org.apache.xerces.parsers.SAXParser
    Exception net.sf.saxon.trans.DynamicError: org.xml.sax.SAXParseException: The element type “span” must be terminated by the matching end-tag “</span>”.
    org.xml.sax.SAXParseException: The element type “span” must be terminated by the matching end-tag “</span>”.

Viewing 8 replies - 1 through 8 (of 8 total)
  • what is the url of the site you are running this “checker thing” on?

    And closing a span is not unreasonable.

    Thread Starter craigh

    (@craigh)

    Thnaks for looking at this.

    my page is https://www.loanchecker.com.au

    Also used the markup validation tool at https://validator.w3.org/ and it came back with 16 errors on the page.

    I’ll fix those and see if I get a better result

    Would it be normal to have so many errors when writing a page in visual?
    If so wil have to make it a habit of checking code on every post I write

    Thread Starter craigh

    (@craigh)

    Arrgh frustrating! I must be missing something here.

    I run a check using https://validator.w3.org/ and it comes back with heaps of errors. most appear to be related to closing font code, closing papargraph codes etc. If I clean these up the problem is whenever I edit or post anything I get heaps more errors again. It appears from looking at this that the code generated by wordpress when posting in visual is faulty or incomplete. The pages display OK so is it faulty code or is the code Validator having problems recognising it.

    I’m new to this and don’t really understand code that well. Has anybody had the same experience?

    Thread Starter craigh

    (@craigh)

    Ok done a lot more reading and playing around but haven’t really progressed. With validator I can see the supposed xhtml issues on their page however I don’t see some of these peices of code when in wordpress to edit the post for example the validator tells me that </p> is missing however the > however I can’t see this code in the edit screen. Is there a setting somewhere that allows me to see all code in a post?

    I don’t know. However, when you have a pile of errors like that, and fixing them just calls up more errors, it’s likely that you have a coding problem somewhere that’s throwing the checker off. Only … you have to find it.

    First of all, I would use the CSS file to specify fonts because the <font> tag is deprecated (means you really shouldn’t use it nowadays). This would also mean that your font tag problems would go away.

    Then, when you set an image, you need to “close” the img tag:

    <img src="someimage" />

    See that /> ?? That’s what it’s looking for.

    Clean up some of that stuff, and your problems will likely lessen.

    Thread Starter craigh

    (@craigh)

    Hi Dianne, thanks heaps for your help, I’ve progressed a bit with this one and put in a new topic:

    wordpress XHTML not compliant??

    Looks life I have some sort of databse error throwing this up. if you get a chance please feel free to look at this other thread.
    Cheers,
    Craig

    Which other thread. Could you post a link to it?

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘semantic code errors’ is closed to new replies.