Skip to main content

Bug Tracker

Side navigation

#2210 closed bug (wontfix)

Opened January 22, 2008 01:21PM UTC

Closed May 16, 2008 07:35PM UTC

problem with safari and xhtml

Reported by: elvan49 Owned by: flesler
Priority: trivial Milestone: 1.2.4
Component: core Version: 1.2.2
Keywords: Cc:
Blocked by: Blocking:
Description

i've built a site with php/mysql and jquery.

In safari some page display a jquery function because of the tag br and img (line 775). My tags were in the xhtml format (<br/>) and this fact created a bug.

I've added a control in the jquery library to fix this bug :

if ( typeof arg == "string" ) {
				if ( !jQuery.browser.safari ){
					// Fix "XHTML"-style tags in all browsers
					arg = arg.replace(/(<(\\w+)[^>]*?)\\/>/g, function(m, all, tag){
						return tag.match(/^(abbr|br|col|img|input|link|meta|param|hr|area)$/i)? m : all+"></"+tag+">";
					});
				}

But i'm sure that it's not acceptable... Sorry for my poor english !

All of the problem is related there :

http://www.developpez.net/forums/showthread.php?t=477647

Attachments (0)
Change History (4)

Changed January 24, 2008 07:37PM UTC by joern comment:1

component: webcore
owner: joerndavid

Changed May 16, 2008 07:11PM UTC by flesler comment:2

milestone: 1.2.31.2.4
need: ReviewTest Case

Line 775 where ?

Could you provide a test case ? that is, an html file with the style and js used.

Thanks

Changed May 16, 2008 07:16PM UTC by flesler comment:3

owner: davidflesler
status: newassigned

Same as #2194. Could you provide the exact Safari 2 version you're using ?

Changed May 16, 2008 07:35PM UTC by flesler comment:4

resolution: → wontfix
status: assignedclosed

Ok, found the version and the problem.

Same as #2035.