Comments (9)
Why is this a problem exactly?
from mootools-core.
For example <form action></form>
sends you to http://domain.com/null while <form action=""></form>
sends you to the same page.
from mootools-core.
nice find!
from mootools-core.
Yup. Definitely an issue. Should be a pretty easy fix I would assume
from mootools-core.
@subtleGradient how?
form.setAttribute('action', ''); // → <form action></form>
// or maybe?
var attr = document.createAttribute('action');
attr.nodeValue = '';
form.setAttributeNode(attr); // → <form action></form>
So how did you want to fix this?
from mootools-core.
While we're there, does Slick.match(new Element('input[disabled]'), 'input[disabled]') still return false? Boolean (empty) attributes did not call setAttribute, and Slick doesnt read the property
from mootools-core.
@Inviz seems to work fine: http://jsfiddle.net/YBcUs/1/
from mootools-core.
@arian Even if your example does not create element with mootools, i checked it myself now, and it works with the edge mootools. I guess, i just need to update. Thanks anyways!
from mootools-core.
Updated the fiddle and looks like the attribute does have an empty string: http://jsfiddle.net/ubLw5/2/ for all browsers I've tested (FFx, IE, Safari, Chrome, ...)
So.. worksforme. You're probably seeing the attribute as <div attribute>
because of the developer tools vs Firebug it'll show the empty string.
Re-open the issue, if you can provide a better test case.
from mootools-core.
Related Issues (20)
- Request/Request.HTML execute non-javascript <script> tags as Javascript HOT 1
- Update Array.prototype.flatten to match TC39 proposal HOT 13
- Deprecate MooTools? HOT 9
- creating 404 error for video preroll ad on adding just library. HOT 8
- Change this repo title to HTTPS HOT 7
- Conflict with ecmascript Map HOT 2
- Mootools + Google Maps V3 conflict issue causing google streetview not working. HOT 9
- Object.merge deletes EcmaScript Map Object HOT 4
- MooTools library conflicting with new Event(typeArg) HOT 3
- NS_ERROR_FAILURE XMLHttpRequest exception HOT 9
- Mootools.net down HOT 8
- [spam]
- [SPAM]
- Mootools + Google adsense
- GHSL-2020-345: seeking security contact for your project
- Digital Marketing Course
- spam
- node modules error HOT 3
- mootools.net down HOT 2
- Joomla 3. Recaptcha v2 always spin. HOT 1
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 mootools-core.