Comments (6)
Original comment by [email protected]
on 21 Feb 2008 at 9:55
- Added labels: Type-Enhancement
- Removed labels: Type-Defect
from ie7-js.
Is this a true issue? According to W3C the id must be unique in the document,
i.e.
two elements in the same document can't have the same id attribute.
(http://www.w3.org/TR/html401/struct/global.html#h-7.5.2)
/C#
Original comment by [email protected]
on 26 Mar 2008 at 6:46
from ie7-js.
Of course, but it's only a CSS problem.
On a website, you can have a page which contains this :
<div id="my_id" class="my_class"></div>
And another which contains this :
<div id="my_id" class="my_other_class"></div>
In your CSS file, shared with all your pages, if you write this :
#my_id{background:red;}
#my_id.my_class{background:green;}
#my_id.my_other_class{background:blue;}
The background will be red for the two pages with IE6, because you used twice
and
directly the schema " #ID.CLASS ".
It's a little hard to explain with my poor english, sorry :)
Original comment by [email protected]
on 26 Mar 2008 at 7:25
from ie7-js.
Ah. My bad. Didn't think of that.
However, shouldn't this be a defect rather than an enhancement?
Original comment by [email protected]
on 26 Mar 2008 at 8:03
from ie7-js.
Changed back to "Defect".
Original comment by [email protected]
on 26 Mar 2008 at 8:11
- Added labels: Type-Defect
- Removed labels: Type-Enhancement
from ie7-js.
Original comment by [email protected]
on 14 Feb 2010 at 3:08
- Changed state: Accepted
- Added labels: Priority-Low
- Removed labels: Priority-Medium
from ie7-js.
Related Issues (20)
- Source file encoding HOT 3
- fixed png background-positions automaticly snap to top left HOT 3
- onresize somethimes causes an error HOT 2
- :hover selector pointing to non-existent elements causes errors HOT 3
- Resize elements that have a PNG background but no content HOT 1
- "ID element[attribute]" style causes an error when an element with ID doesn't exist on the page HOT 3
- Nested UL error HOT 3
- Enhancement: Allow for PNG stretch sizingMethod HOT 11
- :before :after problems with rounded corners on floated list items HOT 11
- Floated elements move to the top HOT 2
- in HOT 1
- In IE7 404 error not getting overide (Case-Sensitive urls) HOT 1
- width on body HOT 2
- error in IE8.js and IE7.js HOT 8
- ie7.js breaks when using invalid id's in the CSS file. HOT 2
- # ID selector with a "width" or "height" matching no elements causes script error. HOT 1
- PNG transparency fix not working on dynamically added images HOT 1
- Border-spacing doesn't allow different horizontal and vertical spacing HOT 3
- processing of top right bottom left css properties HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ie7-js.