blah blah blah
views: 6566 times
IE8的WebSlice是 個很炫很方便的新功能
看起來也很簡單易懂

但我完成後卻在檢視內容時一直得到"正規化錯誤"的訊息
"正規化錯誤"? 這什麼鬼? 到處查都查不到
原本以為是因為它會去驗證rss但抓不到我們的測試環境才會出現錯誤
但上線了狀態仍然一樣
到msdn一查之下才發現原來它因為安全問題並不支援javascript產生的內容
For security reasons, the Web Slice preview does not allow script or Microsoft ActiveX controls; consequently, HTML forms and buttons are not supported. Instead, to perform related actions, you can provide links that include URL parameters. (Navigation occurs within the currently selected tab.) If additional functionality is required, use an Alternative Display Source.
還好內容屬性可以有另一種寫法來設定別的顯示來源

我只要另外寫一支非javascript產生內容的網頁來給它用就好了
要注意的是, 這麼作的話, Web Slice的preview畫面就不會依你的剪輯片段size來顯示, 而是一律以320*240來呈現
The alternative display source preview should be small enough to fit into a 320-by-240 (WH) space, on a 96-dots per inch (dpi) screen. The preview window does not automatically resize to the dimensions of the Web Slice, if a different size is used.
而且這個屬性FireFox的偽WebSliceWebChunks可是不認得的哦

參考資料:
Web Slice Format Specification - Version 0.9
Subscribing to Content with Web Slices