Undescriptive Markup - Currently we have deeply nested makeup (div/span), which sometimes becomes harder to understand/maintain. Refer any of the popular web page source and you will find deep nested mark up. Though some provide meaningful id/class.
Style conflicts - There is no guarantee that css from one part of the page will not conflict to other.
No native templates - Template is a mechanism for holding client-side content that is not to be rendered when a page is loaded, but may be subsequently be instantiated during runtime using JS. Its a content fragment that can be used in the document.
HTML Imports - There is no way to include and reuse HTML documents in other HTML documents.
No bundling - You cannot bundle css, javascript, html together. like bootstarp need to have at least 3 reference - jquery,bootstrap js and css.
No standard - Multiple library like jQuery, angular (directive), bootstrap provide their own convention, but there is no standard.
HTML5 Web component addresses these issues, by using combination of following four technologies.
- Template
- Shadow DOM
- Custom Element
- HTML Import
No comments:
Post a Comment