Ticket #2210 (closed bug: wontfix)
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: | ||
| Blocking: | Blocked by: |
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
Change History
comment:1 Changed 5 years ago by joern
- Owner changed from joern to david
- Component changed from web to core
comment:2 Changed 5 years ago by flesler
- need changed from Review to Test Case
- Milestone changed from 1.2.3 to 1.2.4
Line 775 where ?
Could you provide a test case ? that is, an html file with the style and js used. Thanks
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
