ASP.NET Tutorial/Development/Browser File

Материал из .Net Framework эксперт
Версия от 11:56, 26 мая 2010; Admin (обсуждение | вклад) (1 версия)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к: навигация, поиск

A sample browser capabilities file

<browsers>
    <!-- sample UA "Mozilla/3.0 WebTV/1.2(Compatible;MSIE 2.0)" -->
    <browser id="WebTV" parentID="IE2">
        <identification>
            <userAgent
    
        </identification>
    
        <capture>
        </capture>
    
        <capabilities>
            <capability name="backgroundsounds"    value="true" />
            <capability name="browser"             value="WebTV" />
            <capability name="cookies"             value="true" />
            <capability name="isMobileDevice"      value="true" />
            <capability name="letters"             value="${letters}" />
            <capability name="majorversion"        value="${major}" />
            <capability name="minorversion"        value="${minor}" />
            <capability name="tables"              value="true" />
            <capability name="type"                value="WebTV${major}" />
            <capability name="version"             value="${version}" />
        </capabilities>
    
        <controlAdapters markupTextWriterType="System.Web.UI.Html32TextWriter">
    </controlAdapters>
    </browser>
    
    <browser id="WebTV2" parentID="WebTV">
        <identification>
            <capability name="minorversion" match="2" />
        </identification>
    
        <capture>
        </capture>
    
        <capabilities>
            <capability name="css1"                value="true" />
            <capability name="ecmascriptversion"   value="1.0" />
            <capability name="javascript"          value="true" />
        </capabilities>
    </browser>
    
    <gateway id="WebTVbeta" parentID="WebTV">
        <identification>
            <capability name="letters" match="^b" />
        </identification>
    
        <capture>
        </capture>
    
        <capabilities>
            <capability name="beta"    value="true" />
        </capabilities>
    </gateway>
</browsers>