docock
09-22-2011, 01:34 AM
I'm trying getting one of my webpage XHTML 1.0 Strict.
There is only one error left, namely:
document type does not allow element "br" here
at this line:
container.innerHTML = result.translation.replace(/mdw/g, '<br />');
Obviously this is part of my javascript coding, but it's where the validation goes wrong.
I can't put the javascript in an external file since several javascript variables are getting filled by php.
I've tried several options, but I ain't a javascript expert.. so perhaps someone can help me out.
There is only one error left, namely:
document type does not allow element "br" here
at this line:
container.innerHTML = result.translation.replace(/mdw/g, '<br />');
Obviously this is part of my javascript coding, but it's where the validation goes wrong.
I can't put the javascript in an external file since several javascript variables are getting filled by php.
I've tried several options, but I ain't a javascript expert.. so perhaps someone can help me out.