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


  #1  
Old Feb 15, 2013, 12:12 PM
swimflyfast2's Avatar
swimflyfast2
 
150 posts · Aug 2010
Horse Country in Virginia
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
  #2  
Old Feb 15, 2013, 12:21 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
set your CSS to external and then try the validation
also check to see if your PHP is running with 'magic quotes' set to on and if so, set it off (ask your host about how to check and change this)
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Feb 15, 2013, 02:06 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
p.s. you should go validate google.com or apple.com or microsoft.com and see the results...oh and try multiple validators and see if any of them agree to the same errors. This is why I don't pay attention to validation
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Bookmarks

Tags
html errors, w3c markup validatior, widget errors



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


All times are GMT -6. The time now is 11:56 AM.


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