Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Ask HN: Why do browsers fetch images from other sites but don't fetch text
3 points by dgudkov on Jan 9, 2012 | hide | past | favorite | 2 comments
Wouldn't web development be much easier if browsers could fetch pieces of text from other sites the same way as HTML tag <img> does now. Using, for instance, CSS selectors. E.g.:

<text src="http://remote.site.com" selector="div#post123" />



We probably would have figured out solutions to cross-site-scripting (XSS) a lot sooner, that's for sure!


Good point. Orthogonal. However, copy & paste isn't that hard. Additionally, one would be at the mercy of whatever changes would occur at the source. You may want that; or not.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: