Hi,
I have developed a javascript script which sends some html code to w3
validator service through xmlHttpRequest interface in IE. I simply
request a page, take responseText property
and send it to w3 with fragment parameter specified. It works as if you
fill the textarea out and press Check button.
I´m always getting validator errors due to the title tag contains
é symbol and it says it ´s not terminated correctly.
(Error Line 189 column 20: end tag for "TITLE" omitted, but its
declaration does not permit this.
<title>Bibliote ca T
You forgot to close a tag, or
you used something inside this tag that was not allowed, and the
validator is complaining that the tag should be closed before such
content can be allowed.)
has anybody experienced with this?. Any charset feature, header or
something like that missing?
Thanks.
function processReqChang e()
{
var stSource;
if (req.readyState ==4 && req.status == 200)
{
stSource = req.responseTex t;
req2.onreadysta techange =
processFinal;
req2.open("POST ", stUrl, false);
req2.setRequest Header("Content-type",
"applicatio n/x-www-form-urlencoded");
req2.send("frag ment=" + stSource);
}
} 9 2129
dnevado wrote: I´m always getting validator errors due to the title tag contains é symbol and it says it ´s not terminated correctly.
I'm guessing you need to double-escape the é.
That is: &eacute;
That can often be a problem when one script calls another, which calls
another and so forth.
--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact
Do I have to encode "&" even if I am sending data with POST method?. In
W3 faq, it´s said you should do it with GET operations included in the
querystring.
I´ll try it.
Thanks Toby.
On Mon, 29 May 2006, Toby Inkster wrote: dnevado wrote:
I´m always getting validator errors due to the title tag contains é symbol and it says it ´s not terminated correctly. I'm guessing you need to double-escape the é.
I'd be happier to see an actual test case than to offer such an
immediate diagnosis. There are at least three issues that might be
involved in such a situation:
1. HTML-encoding the data for putting into HTML markup
2. Form-URL-encoding data for submitting forms
3. Proper representation of characters in Javascript source text.
That can often be a problem when one script calls another, which calls another and so forth.
But not if the programmers understand what they're doing, and have
applied the correct encoding schemes at each stage of their process!
And when they fail to do that, it often results in a potential
security compromise, and the first thing they know about it is when
their HTML starts getting edited for them by intruders (I've seen that
happen in phpwiki) or even being used as a mailing gateway for
spamming, virus distribution, or both.
So this isn't an issue to be taken lightly. In general, it needs a
proper security review, and understanding what kind of encoding to
apply at each stage. IMHO, anyway.
best
Andreas Prilop wrote: On 29 May 2006 dn*****@gmail.c om wrote:
I´m always getting validator errors due to the title tag contains é symbol and it says it ´s not terminated correctly.
Speaking of special characters ... An acute accent (´) is no apostrophe (')! http://www.cl.cam.ac.uk/~mgk25/ucs/apostrophe.html
Unfortunately, acute (´) and grave (`) accents have largely replaced the apostrophe (') in continental Europe due to ill-designed keyboard layouts. Examples: http://www.workingmansdeath.com/imag...kinoplakat.gif
That one looks like it could be a perfectly good apostrophe character in
the font that was used for the poster.
Aus den Werken von Harlan Messinger: Andreas Prilop wrote: On Mon, 29 May 2006, Harlan Messinger wrote: http://www.cl.cam.ac.uk/~mgk25/ucs/apostrophe.html Unfortunately, acute (´) and grave (`) accents have largely replaced the apostrophe (') in continental Europe due to ill-designed keyboard layouts. Examples: http://www.workingmansdeath.com/imag...kinoplakat.gif That one looks like it could be a perfectly good apostrophe character in the font that was used for the poster. Oh no! The basis for this "stencil font" is Helvetica, as can be seen from the letters "G" and "R". You think so? The Helvetica "R" has a dainty table-leg (don't ask me to name the style!) serif that the "R" in the poster lacks.
Hard to tell at that resolution, but I think you're right in that
the right leg of the R has something un-helvetica-ish. Also, the
K is more Univers-like. But I agree with Andreas P. in that the
apostrophe is an accent aigu, no doubt about that.
Andreas
Alan J. Flavell wrote: Toby Inkster wrote:
I'm guessing you need to double-escape the é. That can often be a problem when one script calls another, which calls another and so forth.
But not if the programmers understand what they're doing, and have applied the correct encoding schemes at each stage of their process!
Very true, but all the same, it's often the problem.
--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Jukka K. Korpela |
last post by:
The HTML specifications define the entities ‍, ‌, ‎, ‏
as denoting zero-width joiner, zero-width non-joiner, left to right
mark, and right to left mark.
Is there any evidence of any browser support to the characters so
denoted, in the sense defined in the Unicode standard, chapter 15?
( ‍, ‌, ‎, ‏ )
For example, does f‍i ever produce an fi ligature? In my tests, the
best I get is that the characters...
|
by: Thierry Lam |
last post by:
Let's say I have the following xml tag:
<para role="source">a & b</para>
Currently, an xml parser will treat & as a special character. Does
anyone know the special characters to use around the ampersand so that
the xml parser can treat "a & b" as a whole value?
Thanks
Thierry
|
by: RJN |
last post by:
Hi
I'm using XMLTextReader to parse the contents of XML. I have issues when
the xml content itself has some special characters like & ,> etc.
<CompanyName>Johnson & Jhonson</CompanyName>
<EmployeeStrength>> 1000</EmployeeStrength>
When I do a Xmltextreader.read() and then check the contents of the xml
node by XmltextReader.ReadString(), I get an exception when I have
|
by: BenI |
last post by:
Hello,
I have a XML file using Iso 8859-1 encoding.
Every time when I try to put & character as Tag's value
like <tag>This is & character</tag> Exception is shown
in my application. I use XMLDocument reader in .NET platform.
How should people code & character as an ordinary data character?
I don't mean any platform dependent solution just XML's point of view.
|
by: Arne |
last post by:
A lot of Firefox users I know, says they have problems with validation
where the ampersand sign has to be written as & to be valid. I don't
have Firefox my self and don't wont to install it only because of this,
so I hope some of you gurus can enlighten me with this :)
In what circumstances can the "&" in the source code be involuntary
changed to "&" by a browser when or other software, when editing and
uploading the file to the web...
| |
by: Robert Dodier |
last post by:
Hello,
Sorry for asking what must be a FAQ, but I wasn't able to find the
answer.
I have an XML document fragment which I want to store as a text string.
I want a function to convert any XML special characters such as < >
into
the corresponding character entities. I'm working with Java.
|
by: Taras_96 |
last post by:
Hi all,
I was hoping to get some clarification on a couple of questions I have:
1) When should htmlspecial characters be used? As a general rule should
it be used for text that may contain special characters that is going
to be rendered in the browser (ie: text that isn't in tags)? I've got a
javascript onclick handler whose code includes an ampersand and the
HTML validator complains. I don't know if I should escape the
ampersand, or...
|
by: lonni4000 |
last post by:
My parser parses special characters okay, but adds extra line breaks.
It makes no sense to me at all! If anyone knows what I am doing wrong,
please help.
text file:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE Feed SYSTEM "SDF_NA4.dtd">
<Feed>
.....
<OfficialName>Great Big & Little Co.</OfficialName>
|
by: sophia |
last post by:
why scanf("%d. %d. %d",&d,&m,&y);
is NOT reading the i/p 22 4 1972 correctly,
whereas it is reading the i/p 22. 4. 1972 correctly ?.
Is it because of the dot in the format string of scanf ?
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |