Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Sidebars & Widgets »

html errors in custom widgets as told by W3C Markup Validation


 
Prev Previous Post   Next Post Next
  #1  
Old Feb 15, 2013, 11:12 AM
swimflyfast2's Avatar
swimflyfast2
 
150 posts · Aug 2010
Horse Country in Virginia
html errors in custom widgets as told by W3C Markup Validation

when I ran the w3c validator I get 32 errors relating to my custom widgets see example below.
I'm wondering if I should be worried about this and how it happened. Everything seems to work ok.

example widget:
<?php bfa_widget_area('name=header-slide&cells=3&width_1=220&align_1=9&align_2=9&widt h_640=5&width_3=60&align_3=8&before_widget=<div id="%1$s" class="header-widget %2$s">&after_widget=</div>'); ?>


EXAMPLE of ERRORS from W3C Markup Validation tool:
Line 203, Column 59: an attribute value must be a literal unless it contains only name characters
…_1" align="left" valign="top"><div id=\"text-9\" class=\"header-widget widget_…

You have used a character that is not considered a "name character" in an attribute value. Which characters are considered "name characters" varies between the different document types, but a good rule of thumb is that unless the value contains only lower or upper case letters in the range a-z you must put quotation marks around the value. In fact, unless you have extreme file size requirements it is a very very good idea to always put quote marks around your attribute values. It is never wrong to do so, and very often it is absolutely necessary.

Line 203, Column 59: character "\" is not allowed in the value of attribute "id"
…_1" align="left" valign="top"><div id=\"text-9\" class=\"header-widget widget_…

It is possible that you violated the naming convention for this attribute. For example, id and name attributes must begin with a letter, not a digit.

Line 203, Column 76: an attribute value must be a literal unless it contains only name characters
…valign="top"><div id=\"text-9\" class=\"header-widget widget_text\"> <div cl…

You have used a character that is not considered a "name character" in an attribute value. Which characters are considered "name characters" varies between the different document types, but a good rule of thumb is that unless the value contains only lower or upper case letters in the range a-z you must put quotation marks around the value. In fact, unless you have extreme file size requirements it is a very very good idea to always put quote marks around your attribute values. It is never wrong to do so, and very often it is absolutely necessary.

Line 203, Column 103: "widget_text" is not a member of a group specified for any attribute
…-9\" class=\"header-widget widget_text\"> <div class="textwidget"><center><a…




Atahualpa 3.7.10 The Best theme out there!
wordpress 3.5.1
juggledads multicolumn custom query
 

Bookmarks

Tags
html errors, w3c markup validatior, widget errors

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
HTML markup validation errors? jms5017 Atahualpa 3 Wordpress theme 1 May 1, 2012 01:40 PM
Need validation help - 53 errors and 9 warnings jlindseyjr New Versions, & Updating 4 May 2, 2011 04:04 PM
[SOLVED] W3C Validation 14 Errors 10 Warnings KatyDigg New Versions, & Updating 14 Feb 8, 2011 06:55 AM
W3C Validation Errors! pyoterguru Center area post/pages 1 Jan 5, 2011 07:15 AM
Ampersands Causing Validation Errors webgurl Header configuration & styling 0 Dec 7, 2010 09:00 PM


All times are GMT -6. The time now is 12:45 AM.


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.