When custom attributes conflict with validation
Aug 08I must confess, I am not a validation freak. Semantics and pixel perfection are my primary goals. Forgetting to specify a “type” on a javascript is not the biggest crime. However I went ahead and validated the page I made for this telecom major. A social media campaign microsite which we created in five using restful calls and jquery in the front. Back to validation, 11 validation...
Simulating the Click Event on Firefox
Aug 041 2 3 4 5 6 7 8 9 10 11 12 if(navigator.appName.indexOf("Explorer")== -1) { // Simulates the click() event for gecko based browsers HTMLElement.prototype.click = function() { var evt = this.ownerDocument.createEvent('MouseEvents'); evt.initMouseEvent('click', true, true, this.ownerDocument.defaultView, 1, 0,...
OuterHTML snippet
Aug 04Here is a simple snippet that enables OuterHTML in Firefox. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 if (document.body.__defineGetter__) { if (HTMLElement) { var element = HTMLElement.prototype; if (element.__defineGetter__) { ...
Recent Comments