PassMark Logo
Home » Forum

Announcement

Collapse
No announcement yet.

Indexing failure on single apostrophes

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Indexing failure on single apostrophes

    Several pages I need to search contain single apostrophes for possessive nouns etc, which is normal and correct language. The indexing gives errors on these pages saying they may contain unmatched apostrophes.

    Is there any way to avoid this error and have the pages indexed?

    Ian

  • #2
    Apostrophes should cause no problem. We use them all the time without problem.

    Are you sure it is an apostrophe being used? Might someone have made a mistake and used a quote character instead of an apostrophe?

    What is the URL for the page?

    Comment


    • #3
      The two pages giving this error are:

      http://anticounterfeitingforum.org.uk/counterfeiting.aspx

      http://anticounterfeitingforum.org.uk/other_sources.aspx

      Don't think I'm using any non-standard characters.

      Ian

      Comment


      • #4
        There is a syntax error in the HTML. You are using apostrophes as single quote character in your HTML, which is valid HTML, as you are allowed to use either double quotation marks (ASCII decimal 34) or single quotation marks (ASCII decimal 39). But then you are also using apostrophes in the attribute value. Which is not allowed if you are using apostrophes as a delimiter.

        From the HTML standard.
        Single quote marks can be included within the attribute value when the value is delimited by double quote marks, and vice versa. Authors may also use numeric character references to represent double quotes (") and single quotes (').
        http://www.w3.org/TR/html4/intro/sgmltut.html#h-3.2.2

        This is an example of the offending code on your page,
        title='Counterfeit electronic components: Who's responsible?'

        Comment


        • #5
          Thanks for spotting that. It was customer provided content and I obviosuly hadn't vetted it carefully enough. The complex links to articles cause so many validation errors I gave up at the time........

          Ian

          Comment

          Working...
          X