2002/css-validator/org/w3c/css/properties/css3 CssFontEmphasize.java,1.2,1.3

Update of /sources/public/2002/css-validator/org/w3c/css/properties/css3
In directory hutz:/tmp/cvs-serv4422/org/w3c/css/properties/css3

Modified Files:
	CssFontEmphasize.java 
Log Message:
Adding some tests so there are no errors when the variables are not defined.
For more information see :
http://jigsaw.w3.org/css-validator/validator?text=a+%7B++++background-color%3A+inherit%3B++++background-image%3A+inherit%3B++++background-repeat%3A+inherit%3B++++background-attachment%3A+inherit%3B++++background-position%3A+inherit%3B++++background-clip%3A+inherit%3B++++background-origin%3A+inherit%3B++++background-size%3A+inherit%3B++++background-break%3A+inherit%3B++++background%3A+inherit%3B++++border-top-color+%3A+inherit%3B++++border-right-color%3A+inherit%3B++++border-bottom-color%3A+inherit%3B++++border-left-color%3A+inherit%3B++++border-color%3A+inherit%3B++++border-top-style+%3A+inherit%3B++++border-right-style%3A+inherit%3B++++border-bottom-style%3A+inherit%3B++++border-left-style%3A+inherit%3B++++border-style%3A+inherit%3B++++border-top-width%3A+inherit%3B++++border-right-width%3A+inherit%3B++++border-bottom-width%3A+inherit%3B++++border-left-width%3A+inherit%3B++++border-width%3A+inherit%3B++++border-image%3A+inherit%3B++++border-top-right-radius%3A+inherit%3B++++border-bottom-right-radius%3A+inerit%3B++++border-bottom-left-radius%3A+inherit%3B++++border-top-left-radius%3A+inherit%3B++++border-radius%3A+inherit%3B++++border-break%3A+inherit%3B++++border-top%3A+inherit%3B++++border-right%3A+inherit%3B++++border-bottom%3A+inherit%3B++++border-left%3A+inherit%3B++++border%3A+inherit%3B++++box-shadow%3A+inherit%3B++++display-model%3A+inherit%3B++++display-role%3A+inherit%3B++++display%3A+inherit%3B++++padding%3A+inherit%3B++++padding-top+%3A+inherit%3B++++padding-right%3A+inherit%3B++++padding-bottom%3A+inherit%3B++++padding-left%3A+inherit%3B++++margin-top+%3A+inherit%3B++++margin-right%3A+inherit%3B++++margin-bottom%3A+inherit%3B++++margin-left%3A+inherit%3B++++margin%3A+inherit%3B++++width%3A+inherit%3B++++height%3A+inherit%3B++++box-width%3A+inherit%3B++++box-height%3A+inherit%3B++++box-sizing%3A+inherit%3B++++max-width%3A+inherit%3B++++max-height%3A+inherit%3B++++min-width%3A+inherit%3B++++min-height%3A+inherit%3B++++fit%3A+inherit%3B++++fit-position%3A+inherit%3B++++crop%3A+inherit%3B++++image-oientation%3A+inherit%3B++++image-resolution%3A+inherit%3B++++float%3A+inherit%3B++++clear%3A+inherit%3B++++clear-after%3A+inherit%3B++++clear%3A+inherit%3B++++float-displace%3A+inherit%3B++++indent-edge-reset%3A+inherit%3B++++overflow-x%3A+inherit%3B++++overflow-y%3A+inherit%3B++++overflow%3A+inherit%3B++++overflow%3A+inherit%3B++++overflow-clip%3A+inherit%3B++++visibility%3A+inherit%3B++++color%3A+inherit%3B++++opacity%3A+inherit%3B++++color-profile%3A+inherit%3B++++rendering-intent%3A+inherit%3B++++move-to%3A+inherit%3B++++display%3A+inherit%3B++++quotes%3A+inherit%3B++++counter-increment%3A+inherit%3B++++counter-reset%3A+inherit%3B++++page-policy%3A+inherit%3B++++content%3A+inherit%3B++++crop%3A+inherit%3B++++font-family%3A+inherit%3B++++font-style%3A+inherit%3B++++font-variant%3A+inherit%3B++++font-weight%3A+inherit%3B++++font-stretch%3A+inherit%3B++++font-size%3A+inherit%3B++++font-size-adjust%3A+inherit%3B++++font%3A+inherit%3B++++font-effect%3A+inherit%3B++++font-smooth%3A+inherit%3B++++font-emphasiz-style%3A+inherit%3B++++font-emphasize-position%3A+inherit%3B++++font-emphasize%3A+inherit%3B++++display-model%3A+inherit%3B++++position%3A+inherit%3B++++display-model%3A+inherit%3B++++display-role%3A+inherit%3B++++display%3A+inherit%3B++++box-orient%3A+inherit%3B++++box-direction%3A+inherit%3B++++box-sizing%3A+inherit%3B++++box-align%3A+inherit%3B++++box-flex%3A+inherit%3B++++box-pack%3A+inherit%3B++++box-flex-group%3A+inherit%3B++++box-lines%3A+inherit%3B++++text-height%3A+inherit%3B++++line-height%3A+inherit%3B++++line-stacking-strategy%3A+inherit%3B++++line-stacking-ruby%3A+inherit%3B++++line-stacking-shift%3A+inherit%3B++++line-stacking%3A+inherit%3B++++dominant-baseline%3A+inherit%3B++++alignment-baseline%3A+inherit%3B++++alignment-adjust%3A+inherit%3B++++baseline-shift%3A+inherit%3B++++vertical-align%3A+inherit%3B++++inline-box-align%3A+inherit%3B++++drop-initial-value%3A+inherit%3B++++drop-initial-size%3A+inherit%3B++++drop-initial-after-align%3A+inherit%3B++++drop-initial-after-adjust%3A+inherit%3B+++drop-initial-before-align%3A+inherit%3B++++drop-initial-before-adjust%3A+inherit%3B++++target-name%3A+inherit%3B++++target-new%3A+inherit%3B++++target-position%3A+inherit%3B++++target%3A+inherit%3B++++list-style-type%3A+inherit%3B++++list-style-image%3A+inherit%3B++++list-style-position%3A+inherit%3B++++list-style%3A+inherit%3B++++size%3A+inherit%3B++++page-break-before%3A+inherit%3B++++page-break-after%3A+inherit%3B++++page-break-inside%3A+inherit%3B++++page%3A+inherit%3B++++orphans%3A+inherit%3B++++widows%3A+inherit%3B++++page-policy%3A+inherit%3B++++image-orientation%3A+inherit%3B++++position%3A+inherit%3B++++top%3A+inherit%3B++++bottom%3A+inherit%3B++++right%3A+inherit%3B++++left%3A+inherit%3B++++clip%3A+inherit%3B++++z-index%3A+inherit%3B++++presentation-level%3A+inherit%3B++++ruby-position%3A+inherit%3B++++ruby-align%3A+inherit%3B++++ruby-overhang%3A+inherit%3B++++ruby-span%3A+inherit%3B++++voice-volume%3A+inherit%3B++++voice-balance%3A+inherit%3B++++speak%3A+inherit%3B++++pause-before%3A+inherit%3++++pause-after%3A+inherit%3B++++pause%3A+inherit%3B++++rest-before%3A+inherit%3B++++rest-after%3A+inherit%3B++++rest%3A+inherit%3B++++cue-before%3A+inherit%3B++++cue-after%3A+inherit%3B++++cue%3A+inherit%3B++++mark-before%3A+inherit%3B++++mark-after%3A+inherit%3B++++mark%3A+inherit%3B++++voice-family%3A+inherit%3B++++voice-rate%3A+inherit%3B++++voice-pitch%3A+inherit%3B++++voice-pitch-range%3A+inherit%3B++++voice-stress%3A+inherit%3B++++voice-duration%3A+inherit%3B++++phonemes%3A+inherit%3B++++tab-position%3A+inherit%3B++++tab-align%3A+inherit%3B++++tab-leaders%3A+inherit%3B++++tab-leaders-alignment%3A+inherit%3B++++tab%3A+inherit%3B++++caption-side%3A+inherit%3B++++table-layout%3A+inherit%3B++++border-collapse%3A+inherit%3B++++border-spacing%3A+inherit%3B++++empty-cells%3A+inherit%3B++++column-span%3A+inherit%3B++++row-span%3A+inherit%3B++++speak-header%3A+inherit%3B++++white-space-collapse%3A+inherit%3B++++word-break%3A+inherit%3B++++hyphenate%3A+inherit%3B++++text-wrap%3A+inherit%3B++++word-wrap%3A+inheit%3B++++text-align%3A+inherit%3B++++text-align-last%3A+inherit%3B++++text-justify%3A+inherit%3B++++word-spacing%3A+inherit%3B++++letter-spacing%3A+inherit%3B++++appearance%3A+inherit%3B++++font%3A+inherit%3B++++content%3A+inherit%3B++++icon%3A+inherit%3B++++box-sizing%3A+inherit%3B++++outline%3A+inherit%3B++++outline-width%3A+inherit%3B++++outline-style%3A+inherit%3B++++outline-color%3A+inherit%3B++++outline-offset%3A+inherit%3B++++resize%3A+inherit%3B++++cursor%3A+inherit%3B++++nav-index%3A+inherit%3B++++nav-up%3A+inherit%3B++++nav-right%3A+inherit%3B++++nav-down%3A+inherit%3B++++nav-left%3A+inherit%3B%7D&profile=css3

Index: CssFontEmphasize.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/properties/css3/CssFontEmphasize.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- CssFontEmphasize.java	14 Sep 2005 15:15:04 -0000	1.2
+++ CssFontEmphasize.java	6 Aug 2007 14:44:35 -0000	1.3
@@ -153,13 +153,13 @@
      */
     public String toString() {
 	String ret = "";
-	if (fes.isByUser()) {
+	if (fes != null && fes.isByUser()) {
 	    ret += " " + fes;
 	}
-	if (fep.isByUser()) {
+	if (fep != null && fep.isByUser()) {
 	    ret += " " + fep;
 	}
-	return ret.substring(1);
+	return ret.length() >= 1 ? ret.substring(1) : ret;
     }
 
     /*

Received on Monday, 6 August 2007 14:44:40 UTC