473,398 Members | 2,120 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Getting quote marks around <q> tags in IE

Hi,

I've been developing in Firebird, so I didn't notice this until today.
When I use the <q> tag, IE 6 doesn't put quotes around the quotation. I
tried specifically doing it in a stylesheet:

q:before { content: open-quote; }
q:after { content: close-quote; }

but it didn't work.

Is there any workaround for this (preferably not using Javascript, but I
will if I have to)?

TIA
--
Wayfarer
Journeys: http://wayfarer.brinkster.net/contact.asp
Jul 20 '05 #1
9 3690
Wayfarer <my*******@bottom.com> wrote:
When I use the <q> tag, IE 6 doesn't put quotes around the
quotation.
IE does not support the <q> element. (It recognizes it but does not
implement it according to HTML specifications.)
I tried specifically doing it in a stylesheet:

q:before { content: open-quote; }
q:after { content: close-quote; }

but it didn't work.
IE does not support :before and :after pseudo-elements or generated
content.
Is there any workaround for this (preferably not using Javascript,
but I will if I have to)?


Forget the <q> element (which is getting removed from HTML anyway, and
never was supported in a useful way), and use quotation marks as actual
textual content. Either use Ascii quotation marks, if you wish to play
simple and safe, or use language-dependent correct quotation marks,
such as “ and ” for US English.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Jul 20 '05 #2
Jukka K. Korpela wrote:
Forget the <q> element (which is getting removed from HTML anyway,


Please explain why it's going to be removed. I always thought the
combination of <q> and <cite> had potential (well, in theory).

--
Google Blogoscoped
http://blog.outer-court.com
Jul 20 '05 #3
"Jukka K. Korpela" <jk******@cs.tut.fi> exclaimed in <Xn*****************************@193.229.0.31>:
Forget the <q> element (which is getting removed from HTML anyway, and
never was supported in a useful way), and use quotation marks as actual


That is odd. I don't think I am alone in believing that there will be no
more versions of HTML.

Unless someone figures out that they want a HTML 4.02 or similar, Q won't
go away from HTML.

It won't go away from XHTML either, unless the current draft of XHTML 2.0
is accepted.

In that case "Q" will be replaced by "QUOTE" - yet another in a long list
of "why-oh-why"s related to XHTML 2. Save for the name and the
not-often-implemented addition of one-would-hope
might-be-commonly-used-national quotation marks, QUOTE and Q seem oddly
similar. Why they intend to change the name of the bloody thing I'll never
know.
... but atleast that means the Swedish translation of the WAI will suddenly
become correct in referring to the 'QUOTE element'. What a doubly sordid
story it all is.

--
- Tina Holmboe Greytower Technologies
ti**@greytower.net http://www.greytower.net/
[+46] 0708 557 905
Jul 20 '05 #4
ti**@greytower.net (Tina Holmboe) wrote:
That is odd. I don't think I am alone in believing that there
will be no more versions of HTML.
There will. They will just be called XHML something. XHTML is just
a syntactic transmogrification of HTML.
It won't go away from XHTML either, unless the current draft of
XHTML 2.0 is accepted.
That's a bid odd formulation, since the XHTML 2.0 draft is the best
quasi-official info about the future of HTML.
QUOTE and Q seem oddly similar.
Yet they are quite different.
Why they intend to change the name of the bloody
thing I'll never know.


You will. It's simply because Q is a dead end. It's broken by design.
If you use Q, then your quotations are rendered as normal textual
content on browsers that don't support Q (such as IE). The QUOTE
element is of questionable practical usefulness - it was invented too
late - but at least you can use it without breaking your pages.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Jul 20 '05 #5
"Jukka K. Korpela" <jk******@cs.tut.fi> exclaimed in <Xn*****************************@193.229.0.31>:
ti**@greytower.net (Tina Holmboe) wrote:
That is odd. I don't think I am alone in believing that there
will be no more versions of HTML.
There will. They will just be called XHML something. XHTML is just
a syntactic transmogrification of HTML.


So HTML - an application of SGML - and XHTML - an application of XML - are
simply the same thing. But with different, and not related, version
numbering.

Yes ?
Why they intend to change the name of the bloody
thing I'll never know.


You will. It's simply because Q is a dead end. It's broken by design.
If you use Q, then your quotations are rendered as normal textual
content on browsers that don't support Q (such as IE). The QUOTE
element is of questionable practical usefulness - it was invented too


So ...

<q>This is a quotation</q>

will be rendered, in a UA that does not support Q, as

This is a quotation

whereas

<quote>This is a quotation</quote>

will be rendered, in a UA that does not support QUOTE, as ... what ?
late - but at least you can use it without breaking your pages.


XHTML 2.0 is doing a grand job of that, yes. Grand job.
--
- Tina Holmboe Greytower Technologies
ti**@greytower.net http://www.greytower.net/
[+46] 0708 557 905
Jul 20 '05 #6
Tina Holmboe wrote:
So ...

<q>This is a quotation</q>

will be rendered, in a UA that does not support Q, as

This is a quotation

whereas

<quote>This is a quotation</quote>

will be rendered, in a UA that does not support QUOTE, as ... what ?


Exactly the same as in a UA that does support quote. "Visual user agents must
not by default add delimiting quotation marks (as was the case for the q element
in earlier versions of XHTML). It is the responsibility of the document author
to add any required quotation marks, either directly in the text, or via a
stylesheet."[1]

---
[1] 9.8. The quote element, "XHTMLT 2.0", W3C Working Draft, 6 May 2003,
<http://www.w3.org/TR/xhtml2/mod-inline-text.html#sec_9.8.>

--
Steve

There is nothing more uncommon than common sense -Frank Lloyd Wright
Jul 20 '05 #7
"Steve Fulton" <ce********@hotmail.com> exclaimed in <7S******************@news20.bellglobal.com>:
<q>This is a quotation</q>

will be rendered, in a UA that does not support Q, as

This is a quotation

whereas

<quote>This is a quotation</quote>

will be rendered, in a UA that does not support QUOTE, as ... what ?


Exactly the same as in a UA that does support quote. "Visual user agents must
not by default add delimiting quotation marks (as was the case for the q
element


This is the "quite different" bit, then. The rendering of quotation
marks. Shall I assume that said rendering was the "broken by design" bit ?

--
- Tina Holmboe Greytower Technologies
ti**@greytower.net http://www.greytower.net/
[+46] 0708 557 905
Jul 20 '05 #8
On Sat, 11 Oct 2003, Tina Holmboe wrote:
whereas

<quote>This is a quotation</quote>

will be rendered, in a UA that does not support QUOTE, as ... what ?


You'd look a bit more clueful if you had read this first:

http://www.w3.org/TR/xhtml2/mod-inli...t.html#sec_9.8.

It introduces a subtle new anomaly, but at least it gives a better
impression in respect of fallback behaviour.

The anomaly is that in their exhibit, the quotation marks are placed
inside the <quote> element - but the quotation marks are not,
logically, a part of the quoted text. Thus, IMNSHO the quotation
marks should be placed outside of the <quote> tags, not inside them
(and should use the quotation conventions of the enclosing language,
NOT the conventions of the language being quoted).
Jul 20 '05 #9
"Alan J. Flavell" <fl*****@ph.gla.ac.uk> exclaimed in <Pi*******************************@ppepc56.ph.gla. ac.uk>:
On Sat, 11 Oct 2003, Tina Holmboe wrote:
whereas

<quote>This is a quotation</quote>

will be rendered, in a UA that does not support QUOTE, as ... what ?
You'd look a bit more clueful if you had read this first:


Assuming I write to look clueful, yes.
http://www.w3.org/TR/xhtml2/mod-inli...t.html#sec_9.8.
You'd look a bit less arrogant if you did not assume that I had not
read that URI. Why are you doing this ? Is there a competition going
on with the explicit purpose of pissing off even those who actually
DO know what WWW is for ?
The Q element, today, has not been implemented in the way it was
envisioned. I do not care in the least what anyone - anyone at all - thinks
of whether that original idea was good or not. Water under the bridge.

Simply put: few browsers render the Q element with the quotation marks
assumed to be used by the language in question. Some UAs, however,
*understand* the Q element in that they are able to present the fact
that it is a quotation to readers.

What XHTML 2.0 suggests is to replace Q with QUOTE. Fine. That has two
effects:

- When rendering, the QUOTE should NOT be rendered with enclosing
quotation marks. With the support for Q as it is, that is in effect
the same that happens with Q, correct or not.
- A UA that understands Q but doesn't render it "properly" might still
be able to supply users information regarding the quotations; when
people start writing QUOTE instead, a whole lot of very nifty legacy
tools that look at the semantics of HTML documents will be broken.

Keeping the NAME - Q - and changing the definition was obviously too much
of a stretch.

HTML, no matter what ideals one have, IS the most commonly used markup
language on the WWW. Updating it is a good idea; updating it so that it
remains atleast SOMEWHAT backwards compatible is better.

Breaking it for the sake of who-knows-what is a bloody awful idea; even if
saying so is politically-incorrect-and-very-mean-to-poor-xhtml-2.0.

The anomaly is that in their exhibit, the quotation marks are placed
inside the <quote> element - but the quotation marks are not,
logically, a part of the quoted text. Thus, IMNSHO the quotation
marks should be placed outside of the <quote> tags, not inside them


I am quite sure that the keepers of the draft would be happy to correct
this oversight. Did you tell them ?

Followups set out of ciwas. This isn't a rendering problem.

--
- Tina Holmboe Greytower Technologies
ti**@greytower.net http://www.greytower.net/
[+46] 0708 557 905
Jul 20 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Donald Firesmith | last post by:
I am having trouble having Google Adsense code stored in XSL converted properly into HTML. The <> unfortunately become &lt; and &gt; and then no longer work. XSL code is: <script...
27
by: dip | last post by:
pardon the coversational manner of my thread subject. i'm having issues with the way that the two browsers handle CSS. this is an element i've defined in my style sheet. =========== sm {...
5
by: Marcos MOS | last post by:
Hi, I've put a appSetting tag into my web.config, but when I try to catch its value to my Image WebControl occurs the follow error: "Server tags cannot contain <% ... %> constructs." on...
8
by: Mark | last post by:
We have a multi-line textbox that users copy and paste email text into. The pasted text frequently will contain a tag like <blah@aol.com> or similar. I believe .NET is protecting itself from code...
1
by: Neil Zanella | last post by:
Hello, I would like to do the following: <form method="post" action="<%= Request.ServerVariables %>" runat="server"> The reason I would like to do this is twofold:
4
by: michaeltorus | last post by:
Do server Side tags decrease performance ... i.e. Does it make any difference from <% response.write "A" % <% response.write "B" % <% response.write "C" % <% response.write "D" % t
0
by: J.K. Bach | last post by:
I have an ASP.NET project wherein module-level functions are declared and implemented within the aspx page <%= %> tags. This was working fine before, but now that I have recreated the project to...
7
by: BluDog | last post by:
Hi I am trying to store an image in an xml file, i vcan store it fine but the retreval is a bit of a problem: To String: Dim ms As New IO.MemoryStream Dim arrImage() As Byte...
3
by: ajay2552 | last post by:
Hi, I have a query. All html tags start with < and end with >. Suppose i want to display either '<' or '>' or say some text like '<Company>' in html how do i do it? One method is to use &lt,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
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,...
0
jinu1996
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...
0
tracyyun
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.